Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "tpl-lines">

provide a list of the public transport lines available for a given agency.

Inputs

A JSON with these parameters:
agency string
URI of the agency whose lines are to be retrieved

Outputs

    It provides an array of JSON objects of the lines available, for each line is provided the line long and short name, the uri identifying the line.

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.